package com.masq.agencija.pages;

import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annotations.SessionState;


import com.masq.agencija.interfaces.AuxClient;
import com.masq.agencija.interfaces.Stan;


public class StanDetails {
	
	
	@Persist("flash")
	private Stan izabraniStan;

	public void setIzabraniStan(Stan izabraniStan) {
		this.izabraniStan = izabraniStan;
	}

	public Stan getIzabraniStan() {
		return izabraniStan;
	}
	
	@SessionState
	private AuxClient user;

	private boolean userExists;
	
	public AuxClient getUser() {
		return user;
	}
	
	Object onActivate() {
		if (!userExists) return Login.class;
		return null;
	}
}
